﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<string[]>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    System Roles
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h2>System Roles</h2>

<table><tr><td><b>Role Name</b></td><td><b>Edit</b></td></tr>
<%foreach (string role in Model)
  { %>
 <tr><td><%:role %></td>
 <%if (AuthorizationManager.Authorize("SystemRoles", "Edit"))
  { %>
    <td><a href='<%: string.Format("/SystemRoles/Edit/{0}",role) %>'>Edit</a></td>
<%} %>
 </tr>
<%} %>
</table>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
</asp:Content>
